<template>
    <div class="productPayList">
        <ul>
            <li>
                <div class="left">
                    <img src="@/assets/product.jpg" alt="">
                </div>
                <div class="right">
                    <!-- 商品信息 -->
                    <p class="title">
                        商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题 商品标题商品标题商品标题商品标题商品标题商品标题商品标题商品标题
                    </p>
                    <p class="msg_numAndPrice">
                        <span class="num">x1</span>
                        <span class="price">￥99.00</span>
                    </p>
                </div>
            </li>
        </ul>
        <p class="total">
            共1件商品,合计: <span class="totalPrice">￥99.00</span>
        </p>
    </div>
</template>
<script>
export default {
    name: 'ProductCardPayIndex',

    data() {
        return {

        };
    },

    mounted() {

    },

    methods: {

    },
};
</script>
<style lang="scss" scoped>
.productPayList {
    ul {
        li {
            display: flex;
            border-bottom: 1px solid #ccc;
            margin: 10px;

            .left {
                width: 30%;
                height: 100px;
                // background: #ccc;

                img {
                    width: 80%;
                    height: 90%;
                    object-fit: cover;
                }
            }

            .right {
                width: 70%;
                height: 100px;
                // background: #eee;
                padding: 5px;
                box-sizing: border-box;

                .title {
                    font-size: 14px;
                    font-weight: bold;
                    height: 40px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    /* 显示两行 */
                    -webkit-box-orient: vertical;
                }

                .msg_numAndPrice {
                    margin-top: 20px;
                    display: flex;
                    justify-content: space-between;

                    .num {
                        font-size: 12px;
                        color: #666;
                    }

                    .price {
                        font-size: 12px;
                        color: #f40;
                        font-weight: bold;
                    }
                }
            }
        }

        //去掉最后一个li的边框
        li:last-child {
            border-bottom: none;
        }
    }

    .total {
        margin-top: 20px;
        margin-bottom: 10px;
        font-size: 14px;
        //字间距为2px
        letter-spacing: 2px;
        text-align: right;
        padding-right: 10px;

        .totalPrice {
            color: #f40;
            font-weight: bold;

        }
    }
}
</style>